import 'package:flutter/material.dart';

class PostDetailScreen extends StatelessWidget {
  final String postId;
  final String postContent; // 添加内容字段

  const PostDetailScreen({
    super.key,
    required this.postId,
    required this.postContent, // 接收内容参数
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('帖子详情 #$postId')),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: Text(
            postContent, // 显示文本内容
            style: const TextStyle(fontSize: 18),
          ),
        ),
      ),
    );
  }
}